<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<title>无标题文档</title>
<script src="js/jquery.js"></script>
    <script src="../jquery-2.2.3.min.js"></script>
    <script src="../method.js"></script>
<#include "public/app/mxcss.ftl">
</head>

<body>
<article class="hometop"><a href="javascript:history.back(-1);" class="left"><img src="../images/arrow-left.png"></a> <span>选择银行</span> </article>
<article class="usercenter">
    <section class="two">
    	<p>选择您所属的银行：</p>
        <section class="userlist" id="chosebank">
            <ul>
                <#if bankList??>
                <#list bankList as vo>
                <li>
<#--                    <a href='javascript:chooseBank("+${vo.name?if_exists}+")'>-->
                       <a href="javascript:void(0)" onclick="chooseBank('${vo.name?if_exists}')">
                    <ul>
                        <li class="fl"> <span>${vo.name?if_exists}</span> </li>
                        <li class="fr"> <span><i class="fa fa-angle-right f24 fgray"></i></span> </li>
                    </ul>
                    </a>
                </li>
                </#list>
                </#if>
            </ul>            
        </section>
        <aside class="ml22 mr22 mb22 mt22"> <a href="#" class="btn btn-orange">显示更多银行</a> </aside>
    </section>
</article>

<script>
	$(function(){
		var chose_bak=$('#chosebank').height();
		$('#chosebank').height(234);
		var click_num=0;
		$('.btn').click(function(){
			if(click_num==0){
			$('#chosebank').animate({height:chose_bak+'px',});
			$(this).text('只显示主要银行');
			click_num=click_num+1;
			} else{
				$(this).text('显示更多银行');
				$('#chosebank').animate({height:234+'px',});
				click_num=click_num-1;
			}
		})
	});
</script>
<script>
    function chooseBank(name){
        alert("开始");
        alert(name);
        var data = {name:name};
        var url = "/bindcard/bankchooseover";
        postReq(url,data,function(result){
            if(result.success){
                alert("成功");
                location.href="/bindcard/bindnewcardone";
            }else{
                alert(result.msg);
            }
        })
    }
</script>
</body>
</html>